
ticketHub.controller('insuranceCtrls',function($scope,$http){	
	$scope.postData = {
			channelOrderNo :"",
			policyNo :"",
			policyHolderUserName :"",			
			status :""
	};
	$scope.query = function (curr){
		layer.load(3,{shadeClose:true});//加载层；
		$http({
			url:'../insurance/aviationAccident/search?temp='+Math.random(),
			method:'get',
			params:$scope.postData
		}).success(function(data,header,config,status){	
			layer.closeAll();
			$scope.list = data.data;
		}).error(function(data,header,config,status){
			//处理响应失败
			layer.closeAll();	
			console.log(data)
			layer.alert("请求失败，请检查网络连接")			
		});	
	}
	$scope.query();
})
	
	
